package com.thermal.thermal_inspection.service;

import com.thermal.thermal_inspection.entity.InspectionDetail;
import com.thermal.thermal_inspection.entity.InspectionGroup;
import com.thermal.thermal_inspection.entity.InspectionGroupDetail;
import com.thermal.thermal_inspection.vo.AddInspectionDataVO;

import java.util.List;

public interface InspectionGroupService {
    /**
     * 新建数据组
     */
    public InspectionGroup addInspectionGroup(AddInspectionDataVO addInspectionDataVO);
    /**
     * 获取数据组列表
     */
    public List<InspectionGroup> getInspectionGroups();
    /**
     * 获取数据组详情列表
     */
    public List<InspectionGroupDetail> getInspectionGroupDetails(int inspectionGroupId);
    /**
     * 根据数据组名获取数据组
     */
    public InspectionGroup getInspectionGroupByGroupName(String inspectionGroupName);
    /**
     * 为已存在的数据组新增数据详情
     */
    public Integer addInspectionGroupDetail(InspectionGroupDetail inspectionGroupDetail);
    /**
     * 根据inspectionGroupId查询数据组
     */
    public InspectionGroup getInspectionGroupByInspectionId(int inspectionId);
    /**
     * 修改数据组名
     */
    public Integer updateInspectionGroup(InspectionGroup inspectionGroup);
    /**
     * 删除数据组
     */
    public Integer deleteInspectionGroup(int inspectionGroupId);
    /**
     * 删除数据组详情
     */
    public Integer deleteInspectionGroupDetail(int groupDetailId);
}
